package org.aurora.remote.netty;

import io.netty.channel.Channel;
import org.aurora.remote.protocol.RemoteCommand;
import org.aurora.remote.protocol.RemoteCommandType;

public class NettyRemoteCommand extends RemoteCommand {
    private Channel channel;
    private RemoteCommand remoteCommand;

    public NettyRemoteCommand(Channel channel, RemoteCommand remoteCommand) {
        this.channel = channel;
        this.remoteCommand = remoteCommand;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    public RemoteCommand getRemoteCommand() {
        return remoteCommand;
    }

    @Override
    public RemoteCommandType getRemoteCommandType() {
        return remoteCommand.getRemoteCommandType();
    }
}
